import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/main_login/login.vue')
  },
  {
    path: '/xiugai',
    name: 'xiugai',
    component: () => import('../views/main_login/xiugai.vue')
  },
  {
    path: '/payment',
    name: 'payment',
    component: () => import('../views/main_login/payment.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/pay',
    name: 'pay',
    component: () => import('../views/pay.vue')
  },
  {
    path: '/lun',
    name: 'lun',
    component: () => import('../views/lun.vue'),
  },
  {
    path: '/wudao_1',
    name: 'wudao_1',
    component: () => import('../views/wudao_1.vue'),
  },
  {
    path: '/tiyu_1',
    name: 'tiyu_1',
    component: () => import('../views/tiyu_1.vue'),
  },
  {
    path: '/yaogun_1',
    name: 'yaogun_1',
    component: () => import('../views/yaogun_1.vue'),
  },
  {
    path: '/xiju_1',
    name: 'xiju_1',
    component: () => import('../views/xiju_1.vue'),
  },
  {
    path: '/buyTicket/:id',
    name: 'buyTicket',
    component: () => import('../views/buyTicket.vue'),
  },

  {
    path: '/xinxi',
    name: 'xinxi',
    component: () => import('../views/xinxi.vue'),
  },
  {
    path: '/footers',
    name: 'footers',
    component: () => import('../components/footers/footers.vue')
  },
  {
    path: '/footers2',
    name: 'footers2',
    component: () => import('../components/footers/footers2.vue')
  },
  {
    path: '/headers',
    name: 'headers',
    component: () => import('../components/headers/headers.vue')
  },
  {
    path: '/headers2',
    name: 'headers2',
    component: () => import('../components/headers/headers2.vue')
  },
  {
    path: '/headers3',
    name: 'headers3',
    component: () => import('../components/headers/headers3.vue'),
    children: [
      {
        path: '/xiju_1',
        name: 'xiju_1',
        component: () => import('../views/xiju_1.vue'),
      },
      {
        path: '/wudao_1',
        name: 'wudao_1',
        component: () => import('../views/wudao_1.vue'),
      },
      {
        path: '/tiyu_1',
        name: 'tiyu_1',
        component: () => import('../views/tiyu_1.vue'),
      },
      {
        path: '/yaogun_1',
        name: 'yaogun_1',
        component: () => import('../views/yaogun_1.vue'),
      },
      {
        path: '/lun',
        name: 'lun',
        component: () => import('../views/lun.vue'),
      }

    ]
  },
  {
    path: '/choose',
    name: 'choose',
    component: () => import('../components/choose.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
